package tests.mapper;

import mylab.starters.mybatis.template.SuperMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tests.entity.SysUser;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Sylar
 * @since 2021-11-24
 */
public interface SysUserMapper extends SuperMapper<SysUser> {

    @Select("select * from sys_user where username=#{username} and deleted = 0 limit 1")
    SysUser getByUsername(@Param("username") String username);

}
